﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.WorkflowTemplate.WorkflowCategory
{
	/// <summary>
	/// 工作流分类
	/// </summary>
	public class WorkflowCategoryRequestDto
	{
		/// <summary>
		/// 分类Code
		/// </summary>		
		[Display(Name = "分类Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string CategoryCode { get; set; }
		/// <summary>
		/// 分类名称
		/// </summary>		
		[Display(Name = "分类名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(30, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string CategoryName { get; set; }
		/// <summary>
		/// 是否为预定义分类
		/// </summary>		
		[Display(Name = "是否为预定义分类")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public bool IsPredefined { get; set; }
		/// <summary>
		/// 公司Id
		/// </summary>		
		[Display(Name = "公司Id")]
		public int? CompanyId { get; set; }
	}
}

